import Emil from '@/components/Emil'
import { useEffect } from 'react'
import { useDispatch } from 'umi'
// 邮件管理
export default function emil() {
  const dispatch = useDispatch()
    // 获取邮件数据
    useEffect(() =>{
      dispatch({
        type: 'emil/getEmilList',
        payload:{
          page: 1
        }
      })
    },[])
  return (
    <div>
      <Emil />
    </div>
  )
}
